package jp.co.cos.ittrick.channel.controller.admin.file;

import jp.co.cos.ittrick.channel.service.FileService;

import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;
import org.slim3.controller.upload.FileItem;

public class UploadForApplicationController extends Controller {

    private FileService service = new FileService();

    @Override
    public Navigation run() {
        FileItem formFile = requestScope("formFile");
        service.uploadForApplication(formFile);
        return redirect("/admin/application");
    }
}
